-
Notifications
You must be signed in to change notification settings - Fork 185
docs: finish v4 migration doc #1311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: LordOfPolls <dev@lordofpolls.com>
|
Not merging pending approval from a 4.x user |
|
|
||
| These should be a lot more familiar to you - many interactions in v5 that aren't slash commands are similar to v4, minus name changes (largely to the decorators and classes you use). They should still *function* similarly though, but it's never a bad idea to consult the various guides that are on the sidebar to gain a better picture of how they work. | ||
|
|
||
| [If you're using context menus](../04 Context Menus) (IE `@bot.user_command` or `@bot.message_command`), note that the decorator you use is slightly different from either of the two older ones. You now use `@context_menu`, and specify the type of context menu through `context_type` - otherwise, it's mostly the same. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We added equivalents message_context_menu and user_context_menu decorators. Can you add info there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, maybe I should add in the Context Menu guide the mention of these two decorators? (I just learned they exist lol)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in this pr I think, but better ask Polls about it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Damego @mAxYoLo01 go for it
Toricane
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
About
This pull request attempts to finish the v4 Migration doc page.
Checklist
pre-commitcode linter has been run over all edited files to ensure the code is linted.3.8.6and higher.versionadded,versionchangedanddeprecatedto any new or changed user-facing function I committed.Pull-Request specification
I've made this pull request: (check all that apply)
This is: